package cn.yunhe.crm.dao;

import cn.yunhe.crm.entity.Diary;
import cn.yunhe.crm.entity.DiaryExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface DiaryMapper {
    int countByExample(DiaryExample example);

    int deleteByExample(DiaryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Diary record);

    int insertSelective(Diary record);

    List<Diary> selectByExample(DiaryExample example);

    Diary selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Diary record, @Param("example") DiaryExample example);

    int updateByExample(@Param("record") Diary record, @Param("example") DiaryExample example);

    int updateByPrimaryKeySelective(Diary record);

    int updateByPrimaryKey(Diary record);

    int checkCountByYearAndMonth(Map map);
    
    //日志管理
    List<Diary> findAllDiary();
    
    Diary findDiaryById(Integer id);
     
    int insertDiary(Diary diary);
    
    int  checkCountByToday();

  

}